<template>
  <div class="pageContent">
    <h3 style="font-weight: bolder; display: flex; justify-content: center">
      wangs团队架构
    </h3>
    <div style="margin: 2vw 0 0; width: 100%">
      <div style="width: 100%; display: flex; justify-content: center">
        <Vue2OrgTree :data="data" :horizontal="horizontal" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: {},
      horizontal: false,
    };
  },
  mounted() {
    this.getCompany();
  },
  methods: {
    getCompany() {
      this.$http.get("/getCom").then((res) => {
        if (res.code == 200) {
          console.log(res, "777");
          this.data = res.data[0];
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
@import url("../../styles/pages.scss");
</style>